home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / error / 02parser.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  14.2 KB  |  339 lines

  1.  
  2.  
  3.  
  4.  
  5.      PARSER(ERROR)                3/30/79                PARSER(ERROR)
  6.  
  7.  
  8.  
  9.      NAME
  10.           Parser error message summary
  11.  
  12.      SYNOPSIS
  13.           Error numbers 2000 - 2999.
  14.  
  15.      DESCRIPTION
  16.           The following errors can be generated by  the  parser.   The
  17.           parser reads your query and translates it into the appropri-
  18.           ate internal form; thus, almost all of these errors indicate
  19.           syntax or type conflict problems.
  20.  
  21.      ERRORS
  22.           2000    %0 errors were found in quel program
  23.  
  24.           2100    line %0, Attribute '%1' not in relation '%2'
  25.  
  26.                   This indicates that in a given line of the  executed
  27.                   workspace  the  indicated  attribute  name  is not a
  28.                   domain in the indicated relation.
  29.  
  30.           2103    line %0, Function type does not match type of attri-
  31.                   bute '%1'
  32.  
  33.                   This error will be returned if a function  expecting
  34.                   numeric  data  is  given  a character string or vice
  35.                   versa.  For example, it is illegal to take  the  SIN
  36.                   of a character domain.
  37.  
  38.           2106    line %0, Data base utility command buffer overflow
  39.  
  40.                   This error will result if a utility command  is  too
  41.                   long  for  the  buffer  space allocated to it in the
  42.                   parser.  You must shorten the command  or  recompile
  43.                   the parser.
  44.  
  45.           2107    line %0, You are not allowed to  update  this  rela-
  46.                   tion: %1
  47.  
  48.                   This error will be returned if you attempt to update
  49.                   any  system  relation or secondary index directly in
  50.                   QUEL (such as the RELATION relation).   Such  opera-
  51.                   tions  which  compromise  the  integrity of the data
  52.                   base are not allowed.
  53.  
  54.           2108    line %0, Invalid result relation for APPEND '%1'
  55.  
  56.                   This error message will occur if you execute an  ap-
  57.                   pend  command  to a relation that does not exist, or
  58.                   that you cannot  access.   For  example,  append  to
  59.                   junk( ... ) will fail if junk does not exist.
  60.  
  61.           2109    line %0, Variable '%1' not declared in RANGE  state-
  62.                   ment
  63.  
  64.                   Here, a symbol was used in a QUEL  expression  in  a
  65.                   place  where  a tuple variable was expected and this
  66.                   symbol was not defined via a RANGE statement.
  67.  
  68.           2111    line %0, Too many attributes in key for INDEX
  69.  
  70.                   A secondary index may have no more than 6 keys.
  71.  
  72.           2117    line %0, Invalid relation name '%1' in RANGE  state-
  73.                   ment
  74.  
  75.                   You are declaring a tuple variable which ranges over
  76.                   a relation which does not exist.
  77.  
  78.           2118    line %0, Out of space in query tree - Query too long
  79.  
  80.                   You have the misfortune of creating a query which is
  81.                   too long for the parser to digest.  The only options
  82.                   are to shorten the query or recompile the parser  to
  83.                   have more buffer space for the query tree.
  84.  
  85.           2119    line %0, MOD operator not defined for floating point
  86.                   or character attributes
  87.  
  88.                   The _m_o_d operator is only defined for integers.
  89.  
  90.           2120    line %0, no pattern match operators allowed  in  the
  91.                   target list
  92.  
  93.                   Pattern match operators (such as ``*'') can only  be
  94.                   used in a qualification.
  95.  
  96.           2121    line %0, Only character type domains are allowed  in
  97.                   CONCAT operator
  98.  
  99.           2123    line %0, '%1.all' not defined for replace
  100.  
  101.           2125    line %0, Cannot use aggregates ("avg" or "avgu")  on
  102.                   character values
  103.           2126    line %0, Cannot use aggregates ("sum" or "sumu")  on
  104.                   character values
  105.           2127    line %0, Cannot use numerical functions (ATAN,  COS,
  106.                   GAMMA, LOG, SIN, SQRT, EXP, ABS) on character values
  107.           2128    line %0, Cannot use unary operators ("+" or "-")  on
  108.                   character values
  109.           2129    line %0, Numeric operations (+ - * /) not allowed on
  110.                   character values
  111.  
  112.                   Many functions and operators  are  meaningless  when
  113.                   applied to character values.
  114.  
  115.           2130    line %0, Too many result domains in target list
  116.  
  117.                   Maximum number of result domains is MAXDOM (current-
  118.                   ly 49).
  119.  
  120.           2132    line %0, Too many aggregates in this query
  121.  
  122.                   Maximum number of aggregates allowed in a  query  is
  123.                   MAXAGG (currently 49).
  124.  
  125.           2133    line %0, Type conflict on relational operator
  126.  
  127.                   It is not legal to compare a  character  type  to  a
  128.                   numeric type.
  129.  
  130.           2134    line %0, '%1' is not a constant operator.
  131.                   Only 'dba' or 'usercode' are allowed.
  132.  
  133.           2135    line %0, You cannot duplicate the name of an  exist-
  134.                   ing relation(%1)
  135.  
  136.                   You have tried to  create  a  relation  which  would
  137.                   redefine an existing relation.  Choose another name.
  138.  
  139.           2136    line %0, There is no such hour as %1, use a 24  hour
  140.                   clock system
  141.           2137    line %0, There is no such minute as  %1,  use  a  24
  142.                   hour clock system
  143.           2138    line %0, There is no such time as 24:%1,  use  a  24
  144.                   hour clock system
  145.  
  146.                   Errors 2136-38 indicate that you  have  used  a  bad
  147.                   time  in  a  _p_e_r_m_i_t statement.  Legal times are from
  148.                   0:00 to 24:00 inclusive.
  149.  
  150.           2139    line %0, Your database does not support query modif-
  151.                   ication
  152.  
  153.                   You have tried to issue a query modification  state-
  154.                   ment (_d_e_f_i_n_e), but the database was created with the
  155.                   -_q flag.  To use the facilities  made  available  by
  156.                   query modification, you must say:
  157.  
  158.                           creatdb -e +q _d_b_n_a_m_e
  159.  
  160.                   to the shell.
  161.  
  162.           2500    line %0, The word '%1', cannot follow this command
  163.  
  164.                   A 2500 error is reported by the parser if it  cannot
  165.                   otherwise classify the error.  One common way to ob-
  166.                   tain this error is to omit the required  parentheses
  167.                   around the target list.  The parser reports the last
  168.                   symbol which was obtained from the  scanner.   Some-
  169.                   times,  the  last  symbol is far ahead of the actual
  170.                   place where the error occurred.  The string "EOF" is
  171.                   used  for  the  last symbol when the parser has read
  172.                   past the query.
  173.  
  174.           2501    line %0, The word '%1',  cannot  follow  a  RETRIEVE
  175.                   command
  176.           2502    line %0, The word '%1', cannot follow an APPEND com-
  177.                   mand
  178.           2503    line %0, The word '%1', cannot follow a REPLACE com-
  179.                   mand
  180.           2504    line %0, The word '%1', cannot follow a DELETE  com-
  181.                   mand
  182.           2507    line %0, The word '%1', cannot follow a DESTROY com-
  183.                   mand
  184.           2508    line %0, The word '%1', cannot follow a HELP command
  185.           2510    line %0, The word '%1', cannot follow a MODIFY  com-
  186.                   mand
  187.           2511    line %0, The word '%1', cannot follow a  PRINT  com-
  188.                   mand
  189.           2515    line %0, The word '%1',  cannot  follow  a  RETRIEVE
  190.                   UNIQUE command
  191.           2516    line %0, The word '%1', cannot follow a DEFINE  VIEW
  192.                   command
  193.           2519    line %0, The word '%1', cannot follow a  HELP  VIEW,
  194.                   HELP INTEGRITY, or HELP PERMIT command
  195.           2522    line %0, The word '%1', cannot follow a DEFINE  PER-
  196.                   MIT command
  197.           2523    line %0, The word '%1', cannot follow a  DEFINE  IN-
  198.                   TEGRITY command
  199.           2526    line %0, The word '%1', cannot follow a DESTROY  IN-
  200.                   TEGRITY or DESTROY PERMIT command
  201.  
  202.                   Errors 2502 through 2526 indicate that after an oth-
  203.                   erwise  valid query, there was something which could
  204.                   not begin another command.  The query was  therefore
  205.                   aborted,  since  this  could  have  been  caused  by
  206.                   misspelling _w_h_e_r_e or something equally as dangerous.
  207.  
  208.           2600    syntax error on line %0
  209.                   last symbol read was: '%1'
  210.           2601    line %0, Syntax error on '%1',  the  correct  syntax
  211.                   is:
  212.                   RETRIEVE [[INTO]relname] (target_list) [WHERE qual]
  213.                   RETRIEVE UNIQUE (target_list) [WHERE qual]
  214.           2602    line %0, Syntax error on '%1',  the  correct  syntax
  215.                   is:
  216.                   APPEND [TO] relname (target_list) [WHERE qual]
  217.           2603    line %0, Syntax error*a%1', the correct syntax is:
  218.                   REPLACE tuple_variable (target_list) [WHERE qual]
  219.           2604    line %0, Syntax error on '%1',  the  correct  syntax
  220.                   is:
  221.                   DELETE tuple_variable [WHERE qual]
  222.           2605    line %0, Syntax error on '%1',  the  correct  syntax
  223.                   is:
  224.                   COPY relname (domname = format {, domname = format})
  225.                   direction
  226.           2606    line %0, Syntax error on '%1',  the  correct  syntax
  227.                   is:
  228.                   CREATE  relname (domname1 = format{, domname2 = for-
  229.                   mat})
  230.           2607    line %0, Syntax error on '%1',  the  correct  syntax
  231.                   is:
  232.                   DESTROY relname {, relname}
  233.                   DESTROY [PERMIT | INTEGRITY]  relname  [integer  in-
  234.                   teger} | ALL]
  235.           2609    line %0, Syntax error on '%1',  the  correct  syntax
  236.                   is:
  237.                   INDEX ON relname IS indexname (domain1{, domain2})
  238.           2610    line %0, Syntax error on '%1',  the  correct  syntax
  239.                   is:
  240.                   MODIFY relname TO storage-structure [ON key1 [: sor-
  241.                   tord]
  242.                   [{, key2 [:sortorder]}]] [WHERE [FILLFACTOR = n]  [,
  243.                   MINPAGES = n] [, MAXPAGES = n]]
  244.           2611    line %0, Syntax error on '%1',  the  correct  syntax
  245.                   is:
  246.                   PRINT relname{, relname}
  247.           2612    line %0, Syntax error on '%1',  the  correct  syntax
  248.                   is:
  249.                   RANGE OF variable IS relname
  250.           2613    line %0, Syntax error on '%1',  the  correct  syntax
  251.                   is:
  252.                   SAVE relname UNTIL month day year
  253.           2614    line %0, Syntax error on '%1',  the  correct  syntax
  254.                   is:
  255.                   DEFINE VIEW name (target list) [WHERE qual]
  256.                   DEFINE PERMIT oplist {ON|OF|TO} var  [(attlist)]  TO
  257.                   name  [AT  term] [FROM time TO time] [ON day TO day]
  258.                   [WHERE qual]
  259.                   DEFINE INTEGRITY ON var IS qual
  260.           2615    line %0, Syntax error on '%1',  the  correct  syntax
  261.                   is:
  262.                   RETRIEVE UNIQUE (target_list) [WHERE qual]
  263.           2616    line %0, Syntax error on '%1',  the  correct  syntax
  264.                   is:
  265.                   DEFINE VIEW name (target_list) [WHERE qual]
  266.           2619    line %0, Syntax error on '%1',  the  correct  syntax
  267.                   is:
  268.                   HELP VIEW relname[, relname]
  269.                   HELP PERMIT relname[, relname]
  270.                   HELP INTEGRITY relname[, relname]
  271.           2622    line %0, Syntax error on '%1',  the  correct  syntax
  272.                   is:
  273.                   DEFINE PERMIT oplist {ON|OF|TO} var  [(attlist)]  TO
  274.                   name  [AT  term] [FROM time TO time] [ON day TO day]
  275.                   [WHERE qual]
  276.           2623    line %0, Syntax error on '%1',  the  correct  syntax
  277.                   is:
  278.                   DEFINE INTEGRITY ON var IS qual
  279.  
  280.                   Errors  2600  through  2623  are  generated  when  a
  281.                   command's  syntax  has  been  violated.  The correct
  282.                   syntax is given.  If the command  cannot  be  deter-
  283.                   mined, error 2600 is given.
  284.  
  285.           2700    line %0, non-terminated string
  286.  
  287.                   You have omitted the required string terminator (").
  288.  
  289.           2701    line %0, string too long
  290.  
  291.                   Somehow, you have had the persistence or  misfortune
  292.                   to enter a character string constant longer than 255
  293.                   characters.
  294.  
  295.           2702    line %0, invalid operator
  296.  
  297.                   You have  entered  a  character  which  is  not  al-
  298.                   phanumeric, but which is not a defined operator, for
  299.                   example, "?".
  300.  
  301.           2703    line %0, Name too long '%1'
  302.  
  303.                   In INGRES relation names and domain names are limit-
  304.                   ed to 12 characters.
  305.  
  306.           2704    line %0, Out of space in symbol table  -  Query  too
  307.                   long
  308.  
  309.                   Your query is too big to process.  Try  breaking  it
  310.                   up with more _\_g_o commands.
  311.  
  312.           2705    line %0, non-terminated comment
  313.  
  314.                   You have left  off  the  comment  terminator  symbol
  315.                   (``*/'').
  316.  
  317.           2707    line %0, bad floating constant: %1
  318.  
  319.                   Either your floating constant was incorrectly speci-
  320.                   fied  or  it was too large or too small.  Currently,
  321.                   overflow and underflow are not checked.
  322.  
  323.           2708    line %0, control character passed  in  pre-converted
  324.                   string
  325.  
  326.                   In EQUEL a control character became  embedded  in  a
  327.                   string and was not caught until the scanner was pro-
  328.                   cessing it.
  329.  
  330.           2709    line %0, buffer overflow in converting a number
  331.  
  332.                   Numbers cannot  exceed  256  characters  in  length.
  333.                   This shouldn't become a problem until number formats
  334.                   in INGRES are increased greatly.
  335.  
  336.           2800    line %0, yacc stack overflow in parsing query
  337.  
  338.  
  339.